# encoding  :  utf-8 _*_
# @author   :  朱清闯
# @software :  PyCharm
# time      :  2022/3/26 22:18
from rest_framework import serializers
from question.models import Questions, Course, Chapter, ExaminationPaper


class QuestionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Questions
        fields = "__all__"


class CourseSerializer(serializers.ModelSerializer):
    class Meta:
        model = Course
        fields = "__all__"


class ChapterSerializer(serializers.ModelSerializer):
    class Meta:
        model = Chapter
        fields = "__all__"


class PaperSerializer(serializers.ModelSerializer):
    class Meta:
        model = ExaminationPaper
        fields = "__all__"

